using Nop.Data.Mapping;
using Nop.Plugin.Widgets.AllInOne.Domain;

namespace Nop.Plugin.Widgets.AllInOne.Data
{
    public partial class AllInOneMap : NopEntityTypeConfiguration<AllInOneObject>
    {
        public AllInOneMap()
        {
            this.ToTable("AllInOne");
            this.HasKey(a => a.Id);
            this.Property(a => a.Name).IsRequired().HasMaxLength(400);
            this.Property(a => a.HtmlCode).IsRequired();
            //this.Property(a => a.HtmlCodeExtra).IsRequired();
            this.Property(a => a.WidgetZone).IsRequired().HasMaxLength(100);
        }
    }
}